<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Duan
  Date: 2021-11-21
  Time: 10:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <jsp:include page="/common/head.jsp"></jsp:include>
</head>
<body>
    <h1>注册</h1>
    <f:form action="${ctx}/user/reg" method="post" modelAttribute="user">
        用户名:<f:input path="uname"></f:input><br/>
        密  码:<f:password path="pwd"></f:password><br/>
        工  作:<f:select path="job">
                <f:option value="">---请选择---</f:option>
                <f:options items="${jobs}"></f:options>
            </f:select><br>
        性别：<f:radiobuttons path="sex" items="${sexList}"></f:radiobuttons><br>
        <input type="submit" value="注册">
    </f:form>
</body>
</html>
